package com.example.novel.service.impl;

import com.example.novel.domain.Book;
import com.example.novel.mapper.bookMapper;
import com.example.novel.service.IbookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
/**
 * 业务层实现类
 */
@Service
@Transactional  //开启事务
public class bookServiceImpl implements IbookService {

    @Autowired
    private bookMapper bookMapper;  //运行期间动态创建mapper


    @Override
    public List<Book> getCollectionList() {
        return bookMapper.getCollectionList();
    }

    @Override
    public List<Book> getUpdateList() {
        return bookMapper.getUpdateList();
    }
}
